/*http server response流控制
Created on 2020年05月10日
@author: zxyong 13738196011
 */

package com.zxy.tcp;

import java.io.File;
import java.io.OutputStream;
import com.zxy.common.Com_Para;

public class Response
{
	public static final String	WEB_ROOT			= Com_Para.ApplicationPath + File.separator + "web";
	// 关闭的命令
	@SuppressWarnings("unused")
	private static final String	SHUTDOWN_COMMAND	= "/SHUTDOWN";
	private static final int	BUFFER_SIZE			= 2048;
	private Request				request;
	private OutputStream		output;

	public Response(OutputStream output)
	{
		this.output = output;
	}

	public Request getRequest()
	{
		return request;
	}

	public void setRequest(Request request)
	{
		this.request = request;
	}

	public OutputStream getOutput()
	{
		return output;
	}

	public void setOutput(OutputStream output)
	{
		this.output = output;
	}

	public static int getBUFFER_SIZE()
	{
		return BUFFER_SIZE;
	}
}